home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / freeWAIS-sf-1.1 / ir / weight.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-05-29  |  941 b   |  32 lines

  1. /*                               -*- Mode: C -*- 
  2.  * weight.h -- 
  3.  * ITIID           : $ITI$ $Header $__Header$
  4.  * Author          : Huynh Quoc T. Tung
  5.  * Created On      : Fri May 20 09:18:01 1994
  6.  * Last Modified By: Huynh Quoc T. Tung
  7.  * Last Modified On: Mon May 30 15:39:16 1994
  8.  * Update Count    : 8
  9.  * Status          : Unknown, Use with caution!
  10.  */
  11.  
  12. #ifndef IRFILES_H
  13. #define IRFILES_H
  14. #include "irfiles.h"
  15. #endif
  16.  
  17. typedef struct term_infotable {
  18.   char* term;
  19.   long char_pos;
  20.   long tf;
  21. } term_infotable;
  22.  
  23. #ifndef WEIGHT_H
  24. #define WEIGHT_H
  25. void assign_term_weight_for_doc _AP((long *number_of_elements, database *db));
  26. void write_weight_in_ptr _AP((float weight, unsigned char* ptr));
  27. float read_weight_from_stream _AP((long new_weight_size, FILE* stream));
  28. void save_terms_of_doc _AP((long *number_of_terms, database *db));
  29. void add_terms_saved _AP((boolean is_field, long* number_of_terms, long doc_id, database* db));
  30. #endif
  31.  
  32.